#ifndef STATISTICS_TAB_HPP
#define STATISTICS_TAB_HPP

#include <string>
#include <functional>

struct StatisticsTabPrivateData;
class StatisticsTab
{
    StatisticsTabPrivateData* const d;
public:
    StatisticsTab(std::string name, std::function<void(std::string&, std::string&)> range_updater);
    StatisticsTab(std::string name); // this is a custom tab
    ~StatisticsTab();

    void Select(); // 选中当前页
    void SetDate(const std::string &beg, const std::string &end);

    void Render() const;
};

#endif // STATISTICS_TAB_HPP
